package com.supermap.application.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @ClassName TDepartment
 * @Description 部门实体
 * @Author HEKE
 * @Date 2019/3/7 10:15
 */
@Entity
@Table(name = "T_DS_DEPARTMENT")
public class TDepartment {

    private String pkid;

    private String deptnumber;

    private String deptname;

    private String depatshortname;

    private Double depstatus;

    private String deptleader;

    private Double depttype;

    private String parentId;

    private Double deptlevel;

    private String effectivetime;

    private String descinfo;

    private Double orderindex;

    private Double iconid;


    public TDepartment(String pkid, String deptnumber, String deptname, String depatshortname, Double depstatus, String deptleader, Double depttype, String parentId, Double deptlevel, String effectivetime, String descinfo, Double orderindex, Double iconid) {
        this.pkid = pkid;
        this.deptnumber = deptnumber;
        this.deptname = deptname;
        this.depatshortname = depatshortname;
        this.depstatus = depstatus;
        this.deptleader = deptleader;
        this.depttype = depttype;
        this.parentId = parentId;
        this.deptlevel = deptlevel;
        this.effectivetime = effectivetime;
        this.descinfo = descinfo;
        this.orderindex = orderindex;
        this.iconid = iconid;
    }

    public TDepartment() {

    }

    @GenericGenerator(name = "jpa-uuid", strategy = "uuid")
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(name = "PKID", unique = true, nullable = false, precision = 10, scale = 0)
    public String getPkid() {
        return pkid;
    }

    public void setPkid(String pkid) {
        this.pkid = pkid;
    }

    @Column(name = "DEPTNUMBER")
    public String getDeptnumber() {
        return deptnumber;
    }

    public void setDeptnumber(String deptnumber) {
        this.deptnumber = deptnumber;
    }

    @Column(name = "DEPTNAME")
    public String getDeptname() {
        return deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }

    @Column(name = "DEPTSHORTNAME")
    public String getDepatshortname() {
        return depatshortname;
    }

    public void setDepatshortname(String depatshortname) {
        this.depatshortname = depatshortname;
    }

    @Column(name = "DEPTSTATUS")
    public Double getDepstatus() {
        return depstatus;
    }

    public void setDepstatus(Double depstatus) {
        this.depstatus = depstatus;
    }

    @Column(name = "DEPTLEADER")
    public String getDeptleader() {
        return deptleader;
    }

    public void setDeptleader(String deptleader) {
        this.deptleader = deptleader;
    }

    @Column(name = "DEPTTYPE")
    public Double getDepttype() {
        return depttype;
    }

    public void setDepttype(Double depttype) {
        this.depttype = depttype;
    }

    @Column(name = "PARENTID")
    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    @Column(name = "DEPTLEVEL")
    public Double getDeptlevel() {
        return deptlevel;
    }

    public void setDeptlevel(Double deptlevel) {
        this.deptlevel = deptlevel;
    }

    @Column(name = "EFFECTIVETIME")
    public String getEffectivetime() {
        return effectivetime;
    }

    public void setEffectivetime(String effectivetime) {
        this.effectivetime = effectivetime;
    }

    @Column(name = "DESCINFO")
    public String getDescinfo() {
        return descinfo;
    }

    public void setDescinfo(String descinfo) {
        this.descinfo = descinfo;
    }

    @Column(name = "ORDERINDEX")
    public Double getOrderindex() {
        return orderindex;
    }

    public void setOrderindex(Double orderindex) {
        this.orderindex = orderindex;
    }

    @Column(name = "ICONID")
    public Double getIconid() {
        return iconid;
    }

    public void setIconid(Double iconid) {
        this.iconid = iconid;
    }

    @Override
    public String toString() {
        return "TDepartment{" +
                "pkid='" + pkid + '\'' +
                ", deptnumber='" + deptnumber + '\'' +
                ", deptname='" + deptname + '\'' +
                ", depatshortname='" + depatshortname + '\'' +
                ", depstatus=" + depstatus +
                ", deptleader='" + deptleader + '\'' +
                ", depttype=" + depttype +
                ", parentId='" + parentId + '\'' +
                ", deptlevel=" + deptlevel +
                ", effectivetime='" + effectivetime + '\'' +
                ", descinfo='" + descinfo + '\'' +
                ", orderindex=" + orderindex +
                ", iconid=" + iconid +
                '}';
    }
}
